<?php

class m120614_120519_create_family extends EDbMigration {

	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'employeeId'=>'integer not null',
			'name'=>'varchar(128) not null',
			'gender'=>'varchar(8)',
			'relation'=>'varchar(8)',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
			'createdBy'=>'integer',
			'updatedBy'=>'integer',
		);
		$this->createTable('families', $columns);
	}

	public function safeDown() {
		$this->dropTable('families');
	}

}